package dao;

import br.com.sigcoap.interfaces.IAlunoDao;
import br.com.sigcoap.interfaces.ICursoDao;
import br.com.sigcoap.interfaces.IDisciplinaDao;
import br.com.sigcoap.interfaces.IEnderecoDao;
import br.com.sigcoap.interfaces.IProfessorDao;

public class DAOFactory {

	private static DAOFactory instance = null;

	private DAOFactory() {
	}

	public static DAOFactory getInstance() {
		if (instance == null) {
			instance = new DAOFactory();
		}
		return instance;
	}

	public IAlunoDao getAlunoDao() {
		return new AlunoDao();
	}

	public IProfessorDao getIProfessor() {
		return new ProfessorDao();
	}

	public ICursoDao getCurso() {
		return new CursoDao();
	}

	public IDisciplinaDao getDisciplina() {
		return new DisciplinaDao();
	}

	public IEnderecoDao getEndereco() {
		return new EnderecoDao();
	}

}
